﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace Oplug.CoolTower.DTO
{
    public class DataSQLDto
    {
        [XmlElement("ID")]
        public long ID { get; set; }
        [XmlElement("ViewName")]
        public string ViewName { get; set; }
        [XmlElement("DisplayName")]
        public string DisplayName { get; set; }
        [XmlElement("Memo")]
        public string Memo { get; set; }
        [XmlElement("ViewType")]
        public string ViewType { get; set; }
        [XmlElement("CreateTime")]
        public DateTime CreateTime { get; set; }
        [XmlElement("CreateUser")]
        public string CreateUser { get; set; }
        [XmlElement("SQLText")]
        public string SQLText { get; set; }
        [XmlElement("Version")]
        public string Version { get; set; }
    }

    [XmlRoot("root")]
    public class DataSQLRoot
    {
        [XmlElement("item")]
        public List<DataSQLDto> items { get; set; }
    }

    public class DataSQLSimple
    {
        public long ID { get; set; }
        public string ViewName { get; set; }
        public string DisplayName { get; set; }
        public string Version { get; set; }
    }
}
